package com.lqd.demo.springboot;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.lqd.demo.springboot.orm.jdbcTemplate.bean.UserLoginLog;
import com.lqd.demo.springboot.orm.jdbcTemplate.service.UserLoginLogJDBCTemplate;


@RestController
public class JDBCTemplateController {
	
	@Resource
	UserLoginLogJDBCTemplate userLoginLogJDBCTemplate ;

	@RequestMapping("/jdbc/findPageOrderBy")
	@ResponseBody
	public UserLoginLog findPage(long id)
	{
		return userLoginLogJDBCTemplate.getById(id);
	}
}
